<?php
require_once("conf/db_connection.php");
$trucker = $_GET['trucker'];
$query_equip_size = "SELECT DISTINCT(equipment_size) as size FROM truck WHERE trucker_id='".$trucker."'";
$result_trucker = mysql_query($query_equip_size) or die("SELECT EQUIPMENT SIZE ".mysql_error());


while($row_trucker = mysql_fetch_array($result_trucker))
{
	$str_value=$str_value."Array(\"$row_trucker[size]\",\"$row_trucker[size]\")".",";
}


$str_value=substr($str_value,0,(strLen($str_value)-1)); // Removing the last char , from the string
echo "new Array($str_value)";
?>